home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / demos / hrqfx31.arj / INSTALL.DAT < prev    next >
Text File  |  1993-01-03  |  44KB  |  1,351 lines

  1. /*  install.dat         Install script for HiRes QFX 3.10
  2.  
  3.     01-03-93
  4.  
  5.  
  6.   ----------------------------------------------------------------------------
  7.                   S U B L I C E N S E   D I S C L A I M E R
  8.  
  9.     The installation program used to install the HiRes QFX programs, fonts
  10.     and extras, INSTALL, is licensed software provided by Knowledge
  11.     Dynamics Corporation, P.O.  Box 1558, Canyon Lake, Texas 78130-1558
  12.     (USA). INSTALL is Copyright (c) 1987-1992 by Knowledge Dynamics
  13.     Corporation which reserves all copyright protection worldwide.
  14.  
  15.     INSTALL is provided to you for the exclusive purpose of installing the
  16.     HiRes QFX programs, fonts and extras.  Ron Scott, Inc.  is exclusively
  17.     responsible for the support of HiRes QFX, including support during the
  18.     installation phase.  In no event will Knowledge Dynamics Corporation be
  19.     able to provide any technical support for HiRes QFX.
  20.  
  21.   -------------------------------------------------------------------------- */
  22.  
  23. @DefineProject
  24. // @Name       = "HiRes QFX"
  25.    @Name       = "HiRes QFX Demo"       // define for Demo, un-def above line
  26.    @Version    = "3.10"
  27.    @OutDrive   = C
  28. // @SubDir     = "\\HRQ3"                   // default directory
  29.    @SubDir     = "\\HRQ3DEMO"               // directory for Demo vers
  30. @EndProject
  31.  
  32. @DefineVars
  33.     @Integer @IsVista = 0                   // set = '1' to Install for ATVista
  34.     @Integer @IsDemo = 1                    // set = '1' to Install for Demo
  35.  
  36. //  @QString @MainExe = "HRQMAIN.EXE"       // default program name
  37.     @QString @MainExe = "HRQDEMO.EXE"       // program name for Demo vers
  38. //  @QString @MainExe = "HRQVISTA.EXE"      // program name for ATVista vers
  39.     @QString @ProgramLib = "PROGRAMS.RED"   // default program library
  40. //  @QString @ProgramLib = "VISTAPGM.RED"   // program library for ATVista vers
  41.     @QString @TabletExe = "TABLET -Q"
  42.     @QString @BatName = "HRQ3"
  43. //  @QString @DefaultDir = "\\HRQ3"         // default directory
  44.     @QString @DefaultDir = "\\HRQ3DEMO"     // directory for Demo vers
  45.  
  46.     @Drive @TmpDrive
  47.     @Integer @SpaceReqd = 12582912
  48.     @Integer @DeleteCfg = 0
  49.     @Integer @ChangeAdapterOnly = 0
  50.     @Integer @InstallFontsOnly = 0
  51.     @Integer @InstallManualOnly = 0
  52.     @Integer @AskedOnce = 0
  53.     @Integer @VistaGenlock = 0
  54.     @QString @StrDrive
  55.     @QString @CmpDrive
  56.     @QString @ModeStr = ""
  57.     @QString @TabletStr = ""
  58.     @QString @TmpStr = ""
  59.     @Drive @TPlusDrive = C
  60.     @QString @TPlusDir = "\\TPLUS"
  61.     @QString @Adapter = "TARGA"
  62. @EndVars
  63.  
  64.  
  65. @movecstr( 0,1,116,"                                                                              ")
  66. @movecstr( 1,1,116,"           ██          █   ▄▄   ██▀▀▀▀▀▀▀█▄                                   ")
  67. @movecstr( 2,1,116,"           ██          █   ▄▄   ██        █▌  ▄██▀▀▀▀█▄   ▄██▀▀▀▀▀            ")
  68. @movecstr( 3,1,116,"           █████████████   ██   ██▄▄▄▄▄▄▄█▀  ▐██      █▌ ▐██                  ")
  69. @movecstr( 4,1,116,"           ██          █   ██   ██       █▌  ▐██▀▀▀▀▀▀▀   ▀▀▀▀▀▀█▄            ")
  70. @movecstr( 5,1,116,"           ██          █   ██   ██        █▌  ▀██▄▄▄▄▄▄   ▄▄▄▄▄██▀            ")
  71. @movecstr( 6,1,116,"                                                                              ")
  72. @movecstr( 7,1,113,"             ▄▄▄▄▄▄▄▄▄▄▄▄           ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   ▄▄            ▄▄      ")
  73. @movecstr( 8,1,113,"          ▄████▀▀▀▀▀▀▀▀████▄        ███                  ▐██         ██       ")
  74. @movecstr( 9,1,113,"       ▄███▀▀▀          ▀▀▀███▄     ███                   ▐██       ██        ")
  75. @movecstr(10,1,113,"      ▐██▀                  ▀██▌    ███                    ▐██     ██         ")
  76. @movecstr(11,1,113,"     ███▌                    ▐███   ███                     ▐██   ██          ")
  77. @movecstr(12,1,113,"    ▄███                      ███▄  ███▄▄▄▄▄▄▄▄▄▄▄▄          ▐██ ██           ")
  78. @movecstr(13,1,113,"    ███▌                      ▐███  ███                        ███            ")
  79. @movecstr(14,1,113,"    ▀███             ██▄      ███▀  ███                       ██ ██▌          ")
  80. @movecstr(15,1,113,"     ███▌             ▀██▄   ▐███   ███                      ██   ███         ")
  81. @movecstr(16,1,113,"      ▐██▄              ▀██ ▄██▌    ███                     ██     ▐██        ")
  82. @movecstr(17,1,113,"       ▀███▄▄▄          ▄▄▄███▄     ███                    ██       ▐██       ")
  83. @movecstr(18,1,113,"          ▀████▄▄▄▄▄▄▄▄████▀ ▀██▄   ███                   ██         ▐██      ")
  84. @movecstr(19,1,113,"             ▀▀▀▀▀▀▀▀▀▀▀▀      ▀▀▀  ▀▀▀                  ▀▀           ▀▀▀     ")
  85. @movecstr(20,1,113,"                                                                              ")
  86. @movecstr(21,1,113,"                                                                              ")
  87. @movecstr(22,1,113,"                                                                              ")
  88. @movecstr(23,1,113,"                                                                              ")
  89.  
  90. @display
  91. @move(20,10)
  92. @pause
  93. @enddisplay
  94.  
  95.  
  96. INSTALL_OPTIONS:
  97.  
  98. @FlushOptions()
  99.  
  100. @ChangeAdapterOnly = 0
  101.  
  102. @GetOption
  103.     @LocalWindow(6,40)
  104.     @if( (@InDrive == 'A') || (@InDrive == 'B') )
  105.         @Option 100 = "Complete Installation of @Name"
  106.         @if( @IsDemo == 0 )
  107.             @Option 101 = "Install Program Files Only"
  108.             @Option 102 = "Re-Install Font Files Only"
  109.         @else
  110.             @Option 110 = "Install Reference Manual"
  111.         @endif
  112.     @endif
  113.     @Option 103 = "Change Graphics Adapter or Pointing Device"
  114.     @Option 199 = "Un-Install @Name"
  115. @Cls
  116.               Select The Type Of Installation You Wish To Perform
  117. @if( (@InDrive == 'A') || (@InDrive == 'B') )
  118.     @if( @IsDemo == 0 )
  119.         @move(8,10)
  120.     √   Select "Complete Installation" if this is the first time to install
  121.         ANY version of @Name or if you are upgrading from Version 2.0.
  122.     √   Select "Install Program Files Only" if you are upgrading from a
  123.         previous @Name 3.x version.
  124.     √   Select "Re-Install Font Files Only" if you are re-installing the
  125.         Fonts or the Font Converter program.
  126.     @else
  127.         @move(9,10)
  128.     √   Select "Complete Installation" to install the @Name.
  129.     @endif
  130. @endif
  131.  
  132. @if( @IsDemo == 0 )
  133.     @move(14,10)
  134.     √   Select "Change Graphics Adapter or Pointing Device" if you have
  135.         already installed @Name and want to change to a different
  136.         graphics adapter or change pointing devices (mouse or data tablet).
  137.     √   Select "Un-Install @Name" to completely remove @Name,
  138.         all its files and sub-directories from your hard disk.
  139. @else
  140.     @if( (@InDrive == 'A') || (@InDrive == 'B') )
  141.         @move(10,10)
  142.     √   Select "Install Reference Manual" to install the PostScript(tm) file
  143.         containing a printed copy of the @Name Reference Manual.
  144.         Note: Do this AFTER you do the "Complete Installation".
  145.     @endif
  146.     @move(13,10)
  147.     √   Select "Change Graphics Adapter or Pointing Device" if you have
  148.         already installed @Name and want to change to a different
  149.         graphics adapter or change pointing devices (mouse or data tablet).
  150.     √   Select "Un-Install @Name" to remove the @Name,
  151.         all its files and sub-directories from your hard disk.
  152. @endif
  153. @move(19,10)
  154.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  155.     highlight bar to the desired option. Press <Enter> to select that option.
  156. @EndOption
  157.  
  158.     // if complete or partial installation, delete HRQ.CFG
  159. @If( 100 [= @Option || 101 [= @Option )
  160.     @DeleteCfg = 1
  161. @endif
  162.  
  163. @If( 102 [= @Option )
  164.     @InstallFontsOnly = 1
  165. @endif
  166.  
  167.  
  168. LIST_DRIVES:
  169. @ClearOption(1)
  170. @ClearOption(2)
  171.  
  172. @GetOutDrive
  173.         @Suppress A
  174.         @Suppress B
  175.         @LocalWindow(12,40)
  176.         @Cls
  177. @If(100 [= @Option)
  178.     Please select the drive where you want @Name to be installed on
  179.     your computer.
  180. @Else
  181.     Please select the drive where @Name is currently installed.
  182. @EndIf
  183.  
  184.     @move(18,10)
  185.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  186.     bar to your selection and then press the <Enter> key.
  187.  
  188. @EndOutDrive
  189.  
  190. @GetSubdir
  191.     @LocalWindow(8,40)
  192.     @Cls
  193. @If(100 [= @Option)
  194.     Please select the directory in which you want @Name to be
  195.     installed.  We recommend that you select the default: @DefaultDir.
  196. @Else
  197.     Please select the directory where @Name is currently installed.
  198. @EndIf
  199.  
  200.     @move(18,10)
  201.     Press <Enter> to accept the directory displayed, or type in a
  202.     different directory name and press <Enter>.
  203.  
  204. @EndSubdir
  205.  
  206.     //
  207.     //  Complete Installation
  208.     //
  209.  
  210. @If(100 [= @Option)
  211.  
  212.         // check for version 2.0
  213.  
  214.     @if( @exists( "@OutDrive:@SubDir\\proxy.exe" ) )
  215.         @ClearOption(1)
  216.         @ClearOption(2)
  217.         @GetOption
  218.             @LocalWindow(8,40)
  219.             @Option 1 = "Start Over"
  220.             @Option 2 = "Cancel the Installation"
  221.             @Cls
  222.                 You cannot install @Name version @Version in the
  223.                         same directory as version 2.0.
  224.  
  225.             @move(18,10)
  226.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  227.     bar to your selection and then press the <Enter> key.
  228.         @EndOption
  229.  
  230.         @If (1 [= @Option)
  231.             @Goto INSTALL_OPTIONS
  232.         @Elseif (2 [= @Option)
  233.             @exit
  234.         @EndIf
  235.     @Endif
  236.  
  237.         // check for enough space for program files
  238.  
  239.     @if( @DiskFree( @OutDrive ) < 2000000 )
  240.  
  241.         @ClearOption(1)
  242.         @ClearOption(2)
  243.         @GetOption
  244.             @LocalWindow(10,40)
  245.             @Option 1 = "Select a Different Drive"
  246.             @Option 2 = "Cancel the Installation"
  247.             @Cls
  248.                 You do not have enough disk space on drive @OutDrive:
  249.                              to install @Name.
  250.  
  251.                           What would you like to do?
  252.             @move(18,10)
  253.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  254.     bar to your selection and then press the <Enter> key.
  255.         @EndOption
  256.  
  257.         @If (1 [= @Option)
  258.             @Goto LIST_DRIVES
  259.         @Elseif (2 [= @Option)
  260.             @exit
  261.         @EndIf
  262.  
  263.     @endif
  264.  
  265.         // check for enough disk space for spill files
  266.         //  look for a DOS environment variable that names
  267.         //  the temporary directory and if none exists
  268.         //  assume the install drive as the temp drive
  269.  
  270.     @if( "" == "@GetEnv("TEMP")" )
  271.         @if( "" == "@GetEnv("TMP")" )
  272.             @StrDrive = "@OutDrive"
  273.         @else
  274.             @StrDrive = @StrHead( @GetEnv("TMP"), 1 )
  275.         @endif
  276.     @else
  277.         @StrDrive = @StrHead( @GetEnv("TEMP"), 1 )
  278.     @endif
  279.  
  280.         // if temp drive and install drive same,
  281.         //  add amount req'd for programs to spill file amount
  282.  
  283.     @CmpDrive = "@OutDrive"
  284.  
  285.     @if( "@StrDrive" == "@CmpDrive" )
  286.         @SpaceReqd = 14582912
  287.     @endif
  288.  
  289.         // The following is a workaround since there is no fn to
  290.         //  convert from 'string' to 'byte' and we must pass a
  291.         //  byte value to 'DiskFree()' -- we essentially create
  292.         //  a lookup table that maps string in 'StrDrive' to a byte value
  293.  
  294.     @if( "@StrDrive" == "A" )
  295.         @TmpDrive = A
  296.     @ElseIf( "@StrDrive" == "B" )
  297.         @TmpDrive = B
  298.     @ElseIf( "@StrDrive" == "C" )
  299.         @TmpDrive = C
  300.     @ElseIf( "@StrDrive" == "D" )
  301.         @TmpDrive = D
  302.     @ElseIf( "@StrDrive" == "E" )
  303.         @TmpDrive = E
  304.     @ElseIf( "@StrDrive" == "F" )
  305.         @TmpDrive = F
  306.     @ElseIf( "@StrDrive" == "G" )
  307.         @TmpDrive = G
  308.     @ElseIf( "@StrDrive" == "H" )
  309.         @TmpDrive = H
  310.     @ElseIf( "@StrDrive" == "I" )
  311.         @TmpDrive = I
  312.     @ElseIf( "@StrDrive" == "J" )
  313.         @TmpDrive = J
  314.     @ElseIf( "@StrDrive" == "K" )
  315.         @TmpDrive = K
  316.     @ElseIf( "@StrDrive" == "L" )
  317.         @TmpDrive = L
  318.     @ElseIf( "@StrDrive" == "M" )
  319.         @TmpDrive = M
  320.     @ElseIf( "@StrDrive" == "N" )
  321.         @TmpDrive = N
  322.     @ElseIf( "@StrDrive" == "O" )
  323.         @TmpDrive = O
  324.     @ElseIf( "@StrDrive" == "P" )
  325.         @TmpDrive = P
  326.     @ElseIf( "@StrDrive" == "Q" )
  327.         @TmpDrive = Q
  328.     @ElseIf( "@StrDrive" == "R" )
  329.         @TmpDrive = R
  330.     @ElseIf( "@StrDrive" == "S" )
  331.         @TmpDrive = S
  332.     @ElseIf( "@StrDrive" == "T" )
  333.         @TmpDrive = T
  334.     @ElseIf( "@StrDrive" == "U" )
  335.         @TmpDrive = U
  336.     @ElseIf( "@StrDrive" == "V" )
  337.         @TmpDrive = V
  338.     @ElseIf( "@StrDrive" == "W" )
  339.         @TmpDrive = W
  340.     @ElseIf( "@StrDrive" == "X" )
  341.         @TmpDrive = X
  342.     @ElseIf( "@StrDrive" == "Y" )
  343.         @TmpDrive = Y
  344.     @Else
  345.         @TmpDrive = Z
  346.     @EndIf
  347.  
  348.         // check the amount of space on the drive pointed to by
  349.         //  TEMP or TMP, or if neither environment variable is
  350.         //  present, on the install drive
  351.  
  352.     @if( @DiskFree( @TmpDrive ) < @SpaceReqd )
  353.  
  354.         @display
  355.         @cls
  356.                 You do not have enough disk space on drive @TmpDrive:
  357.                    to hold the @Name @Version "spill files".
  358.  
  359.     @Name @Version requires approximately 13 megabytes of free
  360.     disk space to setup the minimum default spill files.
  361.  
  362.     Free up some space on that drive or edit your 'autoexec.bat' file and
  363.     set the 'TEMP' or 'TMP' environment variable to the name of a drive and
  364.     directory that has more space:
  365.  
  366.         Example: SET TEMP=D:\       (puts spill files in root of Drive D:)
  367.  
  368.         @move(18,10)
  369.         @pause
  370.         @enddisplay
  371.         @exit
  372.  
  373.     @endif
  374.  
  375.     @goto INSTALL_FILES
  376.  
  377. @EndIf
  378.  
  379.     //
  380.     //  Install only the Program files or the Font files and Converter,
  381.     //  change graphics adapter and/or pointing device or un-install,
  382.     //  or, if installing Demo, install the Reference Manual...
  383.     //  first check to make sure the directory exists
  384.     //
  385.  
  386. @if( @DirExists( "@OutDrive:@SubDir" ) )
  387.  
  388.         // if only changing Adapter or Pointing Device,
  389.         //  skip the following (since we are not installing
  390.         //  any files) and go straight to adapter selection
  391.  
  392.     @If( 103 [= @Option )
  393.         @ChangeAdapterOnly = 1
  394.         @goto ADAPTERS
  395.     @EndIf
  396.  
  397.         // if un-installing, skip this section
  398.  
  399.     @If( 199 [= @Option )
  400.         @goto UNINSTALL
  401.     @EndIf
  402.  
  403.     @ClearOption(1)
  404.     @ClearOption(2)
  405.     @GetOption
  406.         @LocalWindow(8,40)
  407.         @Option 1 = "OK, Continue With the Installation"
  408.         @Option 2 = "Select a Different Drive and Directory"
  409.         @Cls
  410.         @If(101 [= @Option)
  411.         The @Name Program Files will be installed in the following
  412.         drive and directory: @OutDrive:@SubDir.
  413.         @ElseIf(110 [= @Option )
  414.         The @Name Reference Manual will be installed in the
  415.         following drive and directory: @OutDrive:@SubDir.
  416.         @Else
  417.         The @Name Font Files and Converter will be installed in the
  418.         following drive and directory: @OutDrive:@SubDir\FONTS.
  419.         @Endif
  420.  
  421.         @move(18,10)
  422.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  423.     bar to your selection and then press the <Enter> key.
  424.     @EndOption
  425.  
  426.     @If (1 [= @Option)
  427.         @Goto INSTALL_FILES
  428.     @Elseif (2 [= @Option)
  429.             @Goto INSTALL_OPTIONS
  430.     @EndIf
  431. @Endif
  432.  
  433.     //
  434.     //  If we get here, the user selected a partial install
  435.     //  (ie. install Program or Fonts only) and the @Name
  436.     //  directory does not exist, so tell the user about it
  437.     //
  438.  
  439. @ClearOption(1)
  440. @ClearOption(2)
  441. @GetOption
  442.     @LocalWindow(8,40)
  443.     @Option 1 = "Select a Different Drive and Directory"
  444.     @Option 2 = "Cancel the Installation"
  445.     @Cls
  446.         @Name does not appear to be installed in @OutDrive:@SubDir.
  447.  
  448.                           What would you like to do?
  449.     @move(18,10)
  450.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  451.     bar to your selection and then press the <Enter> key.
  452. @EndOption
  453.  
  454. @If (1 [= @Option)
  455.     @Goto INSTALL_OPTIONS
  456. @Elseif (2 [= @Option)
  457.         @Exit
  458. @EndIf
  459.  
  460.     //
  461.     //  Copy the files from the distribution disk into the
  462.     //  target drive and directory
  463.     //
  464.  
  465. INSTALL_FILES:
  466.  
  467.     // if Complete installation or Programs only,
  468.     // delete old adapter-specific versions of HiRes QFX
  469.  
  470. @If( (100 [= @Option) || (101 [= @Option) )
  471.     @Delete( "@OutDrive:@SubDir\\HRQTARGA.EXE" )
  472.     @Delete( "@OutDrive:@SubDir\\HRQVISTA.EXE" )
  473.     @Delete( "@OutDrive:@SubDir\\HRQVESA.EXE" )
  474. @EndIf
  475.  
  476. @DefineDisk
  477.     @Label = "Programs"
  478.  
  479.         // if Complete installation or Programs only,
  480.         //  install all files in 'programs' lib
  481.  
  482.     @If( (100 [= @Option) || (101 [= @Option) )
  483.  
  484.         @BeginLib  @ProgramLib
  485.             @File *.*
  486.         @EndLib
  487.  
  488.             // copy INSTALL program itself and its script so user
  489.             //  can run it to change graphics adapters
  490.             // also copy file viewer program and 'read me' file
  491.  
  492.         @File INSTALL.EXE
  493.         @File INSTALL.DAT
  494.         @File VIEW.EXE
  495.         @File README.DOC
  496.  
  497.             // copy help file, but no other extras unless a Complete install
  498.  
  499.         @BeginLib  EXTRAS.RED
  500.             @File *.HLP
  501.         @EndLib
  502.     @EndIf
  503.  
  504.         // if Complete installation, do all 'extras' files
  505.  
  506.     @If( 100 [= @Option )
  507.         @BeginLib  EXTRAS.RED
  508.             @File HRQ.BRU   @NoOverwrite
  509.             @File *.MNU     @NoOverwrite
  510.             @File *.BRU     @Out BRUSHES\*.*
  511.             @File *.COL     @Out COLORS\*.*
  512.             @File *.FLT     @Out FILTERS\*.*
  513.             @File *.LUT     @Out LUTS\*.*
  514.                 // if installing Demo version, fonts are in this lib
  515.             @if( @IsDemo == 1 )
  516.                 @File *.FF1   @Out FONTS\*.*
  517.             @endif
  518.         @EndLib
  519.     @endif
  520.  
  521.         // if installing Reference Manual, do all files in 'manual'
  522.  
  523.     @If( 110 [= @Option )
  524.         @BeginLib  MANUAL.RED
  525.             @File *.* @Size 1016642
  526.         @EndLib
  527.     @endif
  528.  
  529. @EndDisk
  530.  
  531.     // if a Complete installation,
  532.     //  create the sub-directories for Lassos and Objects so that
  533.     //  they will be there, even though we have none to install
  534.  
  535. @if( 100 [= @Option )
  536.     @MkDir( "@OutDrive:@SubDir\\LASSOS" )
  537.     @MkDir( "@OutDrive:@SubDir\\OBJECTS" )
  538. @endif
  539.  
  540.     // if installing Demo version, skip 'fonts' disk since fonts
  541.     //  are included in 'extras' lib and there is no 2nd disk
  542.  
  543. @if( @IsDemo == 1 )
  544.  
  545.         // if installing manual, skip 'adapters'
  546.     @If( 110 [= @Option )
  547.         @InstallManualOnly = 1
  548.         @goto INSTALL_DONE
  549.     @endif
  550.  
  551.     @goto ADAPTERS
  552. @endif
  553.  
  554.     // delete old type converter program shipped w/version 3.00
  555. @Delete( "@OutDrive:@SubDir\\FONTS\\TYPEIN.EXE" )
  556.  
  557.         // if Complete installation or Fonts only,
  558.         //  install all Fonts and Converter
  559.  
  560. @If( (100 [= @Option) || (102 [= @Option) )
  561.  
  562.     @DefineDisk
  563.         @Label = "Fonts"
  564.         @BeginLib  HRQFONTS.RED
  565.             @File *.*   @Out FONTS\*.*
  566.         @EndLib
  567.     @EndDisk
  568.  
  569. @EndIf
  570.  
  571.         // if Programs ony installation,
  572.         //  install Font Converter only
  573.  
  574. @If( 101 [= @Option )
  575.     @DefineDisk
  576.         @Label = "Fonts"
  577.         @BeginLib  HRQFONTS.RED
  578.             @File *.EXE     @Out FONTS\*.*
  579.             @File *.DAT     @Out FONTS\*.*
  580.             @File *.HLP     @Out FONTS\*.*
  581.         @EndLib
  582.     @EndDisk
  583. @EndIf
  584.  
  585. @if( @InstallFontsOnly == 1 )
  586.     @goto INSTALL_DONE
  587. @endif
  588.  
  589. @goto ADAPTERS
  590.  
  591.     // un-install HiRes QFX by deleting all files and removing directories
  592.  
  593. UNINSTALL:
  594.  
  595. @FlushOptions()
  596.  
  597. @ClearOption(1)
  598. @ClearOption(2)
  599. @GetOption
  600.     @LocalWindow(12,40)
  601.     @Option 1 = "Yes, Un-Install @Name"
  602.     @Option 2 = "No, Cancel the Un-Install"
  603. @Cls
  604.         You Have Chosen to Un-Install @Name.
  605.         ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  606.         This will delete all the Program Files and all Fonts, Lassos,
  607.         Objects, Brushes, Color Palettes, Lookup Tables and Custom Filters
  608.         that are stored in @OutDrive:@SubDir and its sub-directories!
  609.  
  610.                Please confirm that this is what you want to do.
  611. @move(18,10)
  612.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  613.     highlight bar to either choice.  Press <Enter> to select that choice.
  614. @EndOption
  615.  
  616. @If( 1 [= @Option )
  617.     @Delete( "@OutDrive:@SubDir\\LASSOS\\*.*" )
  618.     @Delete( "@OutDrive:@SubDir\\OBJECTS\\*.*" )
  619.     @Delete( "@OutDrive:@SubDir\\BRUSHES\\*.*" )
  620.     @Delete( "@OutDrive:@SubDir\\COLORS\\*.*" )
  621.     @Delete( "@OutDrive:@SubDir\\FILTERS\\*.*" )
  622.     @Delete( "@OutDrive:@SubDir\\LUTS\\*.*" )
  623.     @Delete( "@OutDrive:@SubDir\\FONTS\\*.*" )
  624.  
  625.     @RmDir( "@OutDrive:@SubDir\\LASSOS" )
  626.     @RmDir( "@OutDrive:@SubDir\\OBJECTS" )
  627.     @RmDir( "@OutDrive:@SubDir\\BRUSHES" )
  628.     @RmDir( "@OutDrive:@SubDir\\COLORS" )
  629.     @RmDir( "@OutDrive:@SubDir\\FILTERS" )
  630.     @RmDir( "@OutDrive:@SubDir\\LUTS" )
  631.     @RmDir( "@OutDrive:@SubDir\\FONTS" )
  632.  
  633.     @Delete( "@OutDrive:@SubDir\\*.*" )
  634.     @RmDir( "@OutDrive:@SubDir" )
  635. @endif
  636.  
  637. @exit
  638.  
  639.  
  640.     //
  641.     //  Choose the type of graphics adapter and mode
  642.     //
  643.  
  644. ADAPTERS:
  645.  
  646.     // if installing ATVista version, skip adapter selection
  647.  
  648. @if( (@IsVista == 1) && (@IsDemo == 0) )
  649.     @Goto ADAPT_VISTA
  650. @endif
  651.  
  652. @FlushOptions()
  653.  
  654. @GetOption
  655.     @LocalWindow(7,40)
  656.     @Option 200 = "TARGA Classic (16, 24 or 32)"
  657.     @Option 201 = "TARGA Plus (all models)"
  658.     @if( @IsDemo == 1 )
  659.         @Option 202 = "ATVista (4 meg or better)"
  660.     @endif
  661.     @Option 203 = "Super VGA (VESA 1.2 compliant*)"
  662.     @Option 204 = "Truevision TV1024-32"
  663.     @Option 299 = "None, Cancel the Installation)"
  664.     @Cls
  665.                 Select The Graphics Adapter @Name Will Use
  666.  
  667.     @move(13,10)
  668.     *   Super VGA adapters must support a suitable Direct Color mode.
  669.         These adapters are sometimes referred to as "High Color" adapters.
  670.         They also must support VESA Bios Extensions version 1.2 or better.
  671.  
  672.  
  673.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  674.     highlight bar to the type of graphics adapter to use.  Press <Enter> to
  675.     select that type of adapter.
  676. @EndOption
  677.  
  678.  
  679. @If (200 [= @Option)
  680.     @Goto ADAPT_TARGA
  681. @Elseif (201 [= @Option)
  682.     @Goto ADAPT_TPLUS
  683. @Elseif (202 [= @Option)
  684.     @Goto ADAPT_VISTA
  685. @Elseif (203 [= @Option)
  686.     @Goto ADAPT_VESA
  687. @Elseif (204 [= @Option)
  688.     @Goto ADAPT_TV1024
  689. @Else
  690.     @Exit
  691. @EndIf
  692.  
  693.     //
  694.     // TARGA Classic graphics adapter installation
  695.     //
  696.  
  697. ADAPT_TARGA:
  698.  
  699. @goto POINTING_DEVICES
  700.  
  701.  
  702.     //
  703.     // TARGA Plus graphics adapter installation
  704.     //
  705.  
  706. ADAPT_TPLUS:
  707.  
  708. @Adapter = "TPLUS"
  709.  
  710. @FlushOptions()
  711.  
  712. @GetOption
  713.     @LocalWindow(10,40)
  714.     @Option 300 = "NTSC 512x486x16 interlaced         "
  715.     @Option 301 = "NTSC 512x486x16 non-interlaced     "
  716.     @Option 302 = "NTSC 512x486x32 interlaced         "
  717.     @Option 303 = "NTSC 512x486x32 non-interlaced     "
  718.     @Option 304 = "PAL  512x576x16 interlaced         "
  719.     @Option 305 = "PAL  512x576x16 non-interlaced     "
  720.     @Option 306 = "PAL  512x576x32 interlaced         "
  721.     @Option 307 = "PAL  512x576x32 non-interlaced     "
  722.     @Option 308 = "NTSC 640x480x16 interlaced         "
  723.     @Option 309 = "NTSC 640x480x16 non-interlaced     "
  724.     @Option 310 = "NTSC 648x486x16 interlaced         "
  725.     @Option 311 = "NTSC 648x486x16 non-interlaced     "
  726.     @Option 312 = "NTSC 720x486x16 interlaced         "
  727.     @Option 313 = "NTSC 720x486x16 non-interlaced     "
  728.     @Option 314 = "PAL  720x576x16 interlaced         "
  729.     @Option 315 = "PAL  720x576x16 non-interlaced     "
  730.     @Option 316 = "NTSC 756x486x16 interlaced         "
  731.     @Option 317 = "NTSC 756x486x16 non-interlaced     "
  732.     @Option 318 = "PAL  768x576x16 interlaced         "
  733.     @Option 319 = "PAL  768x576x16 non-interlaced     "
  734.     @Option 320 = "HiRes 800x600x16 interlaced        "
  735.     @Option 321 = "HiRes 1024x768x16 interlaced       "
  736.     @Option 322 = "VGA Compatible 512x496x16"
  737.     @Option 323 = "VGA Compatible 640x496x16"
  738.     @Option 324 = "VGA Compatible 512x496x32"
  739.     @Cls
  740.                  Select The TARGA Plus Mode @Name Will Use
  741.  
  742.     @move(18,10)
  743.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  744.     highlight bar to the TARGA Plus mode to use.  Press <Enter> to select
  745.     that mode.
  746. @EndOption
  747.  
  748. @If( 300 [= @Option )
  749.     @TmpStr = "TMODE  9"
  750. @ElseIf( 301 [= @Option )
  751.     @TmpStr = "TMODE 10"
  752. @ElseIf( 302 [= @Option )
  753.     @TmpStr = "TMODE 11"
  754. @ElseIf( 303 [= @Option )
  755.     @TmpStr = "TMODE 12"
  756. @ElseIf( 304 [= @Option )
  757.     @TmpStr = "TMODE 13"
  758. @ElseIf( 305 [= @Option )
  759.     @TmpStr = "TMODE 14"
  760. @ElseIf( 306 [= @Option )
  761.     @TmpStr = "TMODE 15"
  762. @ElseIf( 307 [= @Option )
  763.     @TmpStr = "TMODE 16"
  764. @ElseIf( 308 [= @Option )
  765.     @TmpStr = "TMODE 17"
  766. @ElseIf( 309 [= @Option )
  767.     @TmpStr = "TMODE 18"
  768. @ElseIf( 310 [= @Option )
  769.     @TmpStr = "TMODE 19"
  770. @ElseIf( 311 [= @Option )
  771.     @TmpStr = "TMODE 20"
  772. @ElseIf( 312 [= @Option )
  773.     @TmpStr = "TMODE 21"
  774. @ElseIf( 313 [= @Option )
  775.     @TmpStr = "TMODE 22"
  776. @ElseIf( 314 [= @Option )
  777.     @TmpStr = "TMODE 23"
  778. @ElseIf( 315 [= @Option )
  779.     @TmpStr = "TMODE 24"
  780. @ElseIf( 316 [= @Option )
  781.     @TmpStr = "TMODE 25"
  782. @ElseIf( 317 [= @Option )
  783.     @TmpStr = "TMODE 26"
  784. @ElseIf( 318 [= @Option )
  785.     @TmpStr = "TMODE 27"
  786. @ElseIf( 319 [= @Option )
  787.     @TmpStr = "TMODE 28"
  788. @ElseIf( 320 [= @Option )
  789.     @TmpStr = "TMODE 29"
  790. @ElseIf( 321 [= @Option )
  791.     @TmpStr = "TMODE 30"
  792. @ElseIf( 322 [= @Option )
  793.     @TmpStr = "TMODE 33"
  794. @ElseIf( 323 [= @Option )
  795.     @TmpStr = "TMODE 34"
  796. @Else
  797.     @TmpStr = "TMODE 36"
  798. @EndIf
  799.  
  800.     // look for 'TMODE' program in default 'C:\TPLUS' drive and directory
  801.     //  and if not found, ask user where it is
  802.  
  803. FIND_TMODE:
  804.  
  805. @if( @exists( "@TPlusDrive:@TPlusDir\\tmode.exe" ) )
  806.  
  807.     @ModeStr = "@TPlusDrive:@TPlusDir\\@TmpStr"
  808.  
  809.     @goto POINTING_DEVICES
  810. @else
  811.  
  812.     @if( @AskedOnce == 1 )
  813.         @goto NO_TMODE
  814.     @endif
  815.  
  816.         // could not find 'tmode', ask for drive
  817.  
  818.     @TmpDrive = @OutDrive
  819.     @GetOutDrive
  820.         @Suppress A
  821.         @Suppress B
  822.         @LocalWindow(13,40)
  823.         @Cls
  824.     The INSTALL program needs to know the drive in which the "@TPlusDir "
  825.     directory is located. This is the directory where the TARGA Plus
  826.     utility programs are located. This will allow INSTALL to add a line to
  827.     the startup batch file that will set the TARGA Plus mode automatically
  828.     each time you start @Name. Please select the drive from the list.
  829.  
  830.     @move(18,10)
  831.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  832.     bar to your selection and then press the <Enter> key.
  833.     @EndOutDrive
  834.  
  835.     @TPlusDrive = @OutDrive
  836.     @OutDrive = @TmpDrive
  837.  
  838.     @AskedOnce = 1
  839.  
  840.     @goto FIND_TMODE
  841.  
  842. @endif
  843.  
  844. NO_TMODE:
  845.  
  846. @FlushOptions()
  847. @GetOption
  848.     @LocalWindow(12,40)
  849.     @Option 1 = "Try Selecting Another Drive"
  850.     @Option 2 = "Do Not Set TARGA Plus Mode Automatically"
  851.     @Option 3 = "Cancel the Installation"
  852.     @Cls
  853.         INSTALL could not locate the "TMODE.EXE" program in the @TPlusDir
  854.         directory on drive @TPlusDrive:. If the INSTALL program cannot locate this
  855.         program, it cannot set the TARGA Plus operating mode automatically.
  856.  
  857.                           What would you like to do?
  858.     @move(18,10)
  859.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  860.     bar to your selection and then press the <Enter> key.
  861. @EndOption
  862.  
  863. @If (1 [= @Option)
  864.     @AskedOnce = 0
  865.     @Goto FIND_TMODE
  866. @Elseif (2 [= @Option)
  867.     @ModeStr = ""
  868.     @goto POINTING_DEVICES
  869. @Else
  870.     @exit
  871. @EndIf
  872.  
  873. @goto POINTING_DEVICES
  874.  
  875.  
  876.     //
  877.     // ATVista graphics adapter installation
  878.     //
  879.  
  880. ADAPT_VISTA:
  881.  
  882. @Adapter = "VISTA"
  883.  
  884. @FlushOptions()
  885.  
  886. @GetOption
  887.     @LocalWindow(10,40)
  888.     @Option 400 = "NTSC 512x482 interlaced            "
  889.     @Option 401 = "NTSC 512x482 non-interlaced        "
  890.     @Option 402 = "NTSC 512x486 interlaced            "
  891.     @Option 403 = "NTSC 512x486 non-interlaced        "
  892.     @Option 404 = "NTSC 604x486 interlaced            "
  893.     @Option 405 = "NTSC 604x486 non-interlaced        "
  894.     @Option 406 = "NTSC 640x486 interlaced            "
  895.     @Option 407 = "NTSC 640x486 non-interlaced        "
  896.     @Option 408 = "NTSC 646x486 intlcd - 12.2 mhz xtal"
  897.     @Option 409 = "NTSC 720x486 intlcd - 13.5 mhz xtal"
  898.     @Option 410 = "NTSC 720x486 non-intlcd -   "      "
  899.     @Option 411 = "NTSC 756x486 interlaced            "
  900.     @Option 412 = "NTSC 756x486 non-interlaced        "
  901.     @Option 413 = "NTSC 1008x486 interlaced           "
  902.     @Option 414 = "NTSC 1512x486 interlaced           "
  903.     @Option 415 = "PAL 592x578 interlaced             "
  904.     @Option 416 = "PAL 640x486 interlaced             "
  905.     @Option 417 = "PAL 640x486 non-interlaced         "
  906.     @Option 418 = "PAL 720x578 intlcd - 13.5 mhz xtal "
  907.     @Option 419 = "PAL 720x578 non-intlcd -   "       "
  908.     @Option 420 = "PAL 740x578 interlaced             "
  909.     @Option 421 = "PAL 740x578 non-interlaced         "
  910.     @Option 422 = "PAL 986x578 interlaced             "
  911.     @Option 423 = "PAL 1480x578 interlaced            "
  912.     @Option 424 = "HiRes 1024x768 interlaced high-res "
  913.     @Option 425 = "HiRes 1024x856 interlaced high-res "
  914.     @Cls
  915.                    Select The ATVisa Mode @Name Will Use
  916.  
  917.     @move(18,10)
  918.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  919.     highlight bar to the ATVista mode to use.  Press <Enter> to select
  920.     that mode.
  921. @EndOption
  922.  
  923. @If( 400 [= @Option )
  924.     @ModeStr =              "SET DISPLAYCFG=dh512 dv482 ah512 av482"
  925. @ElseIf( 401 [= @Option )
  926.     @ModeStr =              "SET DISPLAYCFG=dh512 dv482 ah512 av482 n"
  927. @ElseIf( 402 [= @Option )
  928.     @ModeStr =              "SET DISPLAYCFG=dh512 dv486 ah512 av486"
  929. @ElseIf( 403 [= @Option )
  930.     @ModeStr =              "SET DISPLAYCFG=dh512 dv486 ah512 av486 n"
  931. @ElseIf( 404 [= @Option )
  932.     @ModeStr =              "SET DISPLAYCFG=dh604 dv486 ah604 av486"
  933. @ElseIf( 405 [= @Option )
  934.     @ModeStr =              "SET DISPLAYCFG=dh604 dv486 ah604 av486 n"
  935. @ElseIf( 406 [= @Option )
  936.     @ModeStr =              "SET DISPLAYCFG=dh640 dv486 ah640 av486"
  937. @ElseIf( 407 [= @Option )
  938.     @ModeStr =              "SET DISPLAYCFG=dh640 dv486 ah640 av486 n"
  939. @ElseIf( 408 [= @Option )
  940.     @ModeStr =              "SET DISPLAYCFG=dh646 dv486 ah646 av486"
  941. @ElseIf( 409 [= @Option )
  942.     @ModeStr =              "SET DISPLAYCFG=dh720 dv486 ah720 av486"
  943. @ElseIf( 410 [= @Option )
  944.     @ModeStr =              "SET DISPLAYCFG=dh720 dv486 ah720 av486 n"
  945. @ElseIf( 411 [= @Option )
  946.     @ModeStr =              "SET DISPLAYCFG=dh756 dv486 ah756 av486"
  947. @ElseIf( 412 [= @Option )
  948.     @ModeStr =              "SET DISPLAYCFG=dh756 dv486 ah756 av486 n"
  949. @ElseIf( 413 [= @Option )
  950.     @ModeStr =              "SET DISPLAYCFG=dh1008 dv486 ah1008 av486"
  951. @ElseIf( 414 [= @Option )
  952.     @ModeStr =              "SET DISPLAYCFG=dh1512 dv486 ah1512 av486"
  953. @ElseIf( 415 [= @Option )
  954.     @ModeStr =              "SET DISPLAYCFG=dh592 dv578 ah592 av578 p"
  955. @ElseIf( 416 [= @Option )
  956.     @ModeStr =              "SET DISPLAYCFG=dh640 dv486 ah640 av486 p"
  957. @ElseIf( 417 [= @Option )
  958.     @ModeStr =              "SET DISPLAYCFG=dh640 dv486 ah640 av486 p n"
  959. @ElseIf( 418 [= @Option )
  960.     @ModeStr =              "SET DISPLAYCFG=dh720 dv578 ah720 av578 p"
  961. @ElseIf( 419 [= @Option )
  962.     @ModeStr =              "SET DISPLAYCFG=dh720 dv578 ah720 av578 p n"
  963. @ElseIf( 420 [= @Option )
  964.     @ModeStr =              "SET DISPLAYCFG=dh740 dv578 ah740 av578 p"
  965. @ElseIf( 421 [= @Option )
  966.     @ModeStr =              "SET DISPLAYCFG=dh740 dv578 ah740 av578 p n"
  967. @ElseIf( 422 [= @Option )
  968.     @ModeStr =              "SET DISPLAYCFG=dh986 dv578 ah986 av578 p"
  969. @ElseIf( 423 [= @Option )
  970.     @ModeStr =              "SET DISPLAYCFG=dh1480 dv578 ah1480 av578 p"
  971. @ElseIf( 424 [= @Option )
  972.     @ModeStr =              "SET DISPLAYCFG=dh1024 dv768 ah1024 av768"
  973. @Else
  974.     @ModeStr =              "SET DISPLAYCFG=dh1024 dv856 ah1024 av856"
  975. @EndIf
  976.  
  977. @FlushOptions()
  978. @GetOption
  979.     @LocalWindow(8,40)
  980.     @Option 1 = "32 Bits Per Pixel"
  981.     @Option 2 = "16 Bits Per Pixel"
  982.     @Cls
  983.          At which "bit depth" do you want to run your ATVista adapter?
  984.     @move(18,10)
  985.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  986.     bar to your selection and then press the <Enter> key.
  987. @EndOption
  988.  
  989. @If (1 [= @Option)
  990.     @ModeStr = "@ModeStr s32"
  991. @Else
  992.     @ModeStr = "@ModeStr s16"
  993. @EndIf
  994.  
  995. @FlushOptions()
  996. @ClearOption(1)
  997. @GetOption
  998.     @Checkbox
  999.     @LocalWindow(8,40)
  1000.     @Option 1 = "Genlock On"
  1001.     @Cls
  1002.           Do you want Genlock on when you run your ATVista adapter?
  1003.     @move(18,10)
  1004.             Press the <Spacebar> key to toggle from "No" to "Yes".
  1005.                    Press <Enter> to confirm your selection.
  1006. @EndOption
  1007.  
  1008. @If (1 [= @Option)
  1009.     @ModeStr = "@ModeStr g1"
  1010.     @VistaGenlock = 1
  1011. @EndIf
  1012.  
  1013. @FlushOptions()
  1014. @GetOption
  1015.     @LocalWindow(12,40)
  1016.     @Option 1 = "Input Gamma 1.0"
  1017.     @Option 2 = "Input Gamma 1.2"
  1018.     @Option 3 = "Input Gamma 1.5"
  1019.     @Option 4 = "Input Gamma 1.8"
  1020.     @Option 5 = "Input Gamma 2.0"
  1021.     @Option 6 = "Input Gamma 2.1"
  1022.     @Option 7 = "Input Gamma 2.2"
  1023.     @Cls
  1024.           Select the Input Gamma for the ATVista. This affects video
  1025.           grabbing or digitizing ONLY. We recommend that you choose a
  1026.           gamma of 1.0. Output Gamma (which affects the image displayed
  1027.           on the monitor) is controlled from within @Name via the
  1028.           GAMMA button on the Main Preferences dialog.
  1029.  
  1030.     @move(18,10)
  1031.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  1032.     bar to your selection and then press the <Enter> key.
  1033. @EndOption
  1034.  
  1035. @If (1 [= @Option)
  1036.     @ModeStr = "@ModeStr ig1.0"
  1037. @ElseIf (2 [= @Option)
  1038.     @ModeStr = "@ModeStr ig1.2"
  1039. @ElseIf (3 [= @Option)
  1040.     @ModeStr = "@ModeStr ig1.5"
  1041. @ElseIf (4 [= @Option)
  1042.     @ModeStr = "@ModeStr ig1.8"
  1043. @ElseIf (5 [= @Option)
  1044.     @ModeStr = "@ModeStr ig2.0"
  1045. @ElseIf (6 [= @Option)
  1046.     @ModeStr = "@ModeStr ig2.1"
  1047. @Else
  1048.     @ModeStr = "@ModeStr ig2.2"
  1049. @EndIf
  1050.  
  1051. @ModeStr = "@ModeStr og1.0"
  1052.  
  1053. @goto POINTING_DEVICES
  1054.  
  1055.  
  1056.     //
  1057.     // VESA Super VGA graphics adapter installation
  1058.     //
  1059.  
  1060. ADAPT_VESA:
  1061.  
  1062. @Adapter = "VESA"
  1063.  
  1064. @FlushOptions()
  1065.  
  1066. @GetOption
  1067.     @LocalWindow(12,40)
  1068.     @Option 500 = "640 x 480    32K     (1:5:5:5)    [110]"
  1069.     @Option 501 = "640 x 480    64K     (5:6:5)      [111]"
  1070.     @Option 502 = "640 x 480    16.8M   (8:8:8)      [112]"
  1071.     @Option 503 = "800 x 600    32K     (1:5:5:5)    [113]"
  1072.     @Option 504 = "800 x 600    64K     (5:6:5)      [114]"
  1073.     @Option 505 = "800 x 600    16.8M   (8:8:8)      [115]"
  1074.     @Option 506 = "1024 x 768   32K     (1:5:5:5)    [116]"
  1075.     @Option 507 = "1024 x 768   64K     (5:6:5)      [117]"
  1076.     @Option 508 = "1024 x 768   16.8M   (8:8:8)      [118]"
  1077.     @Option 509 = "1280 x 1024  32K     (1:5:5:5)    [119]"
  1078.     @Option 510 = "1280 x 1024  64K     (5:6:5)      [11a]"
  1079.     @Option 511 = "1280 x 1024  16.8M   (8:8:8)      [11b]"
  1080.     @Option 599 = "??? Don't know, let HiRes QFX pick mode"
  1081.     @Cls
  1082.                  Select The Super VGA Mode @Name Will Use
  1083.  
  1084.                   Resolution   Colors  (bits/plane) [VESA Mode]
  1085.  
  1086.     @move(18,10)
  1087.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  1088.     highlight bar to the Super VGA mode to use.  Press <Enter> to select
  1089.     that mode.
  1090. @EndOption
  1091.  
  1092. @If( 500 [= @Option )
  1093.     @ModeStr =              "SET HRQVESA=110"
  1094. @ElseIf( 501 [= @Option )
  1095.     @ModeStr =              "SET HRQVESA=111"
  1096. @ElseIf( 502 [= @Option )
  1097.     @ModeStr =              "SET HRQVESA=112"
  1098. @ElseIf( 503 [= @Option )
  1099.     @ModeStr =              "SET HRQVESA=113"
  1100. @ElseIf( 504 [= @Option )
  1101.     @ModeStr =              "SET HRQVESA=114"
  1102. @ElseIf( 505 [= @Option )
  1103.     @ModeStr =              "SET HRQVESA=115"
  1104. @ElseIf( 506 [= @Option )
  1105.     @ModeStr =              "SET HRQVESA=116"
  1106. @ElseIf( 507 [= @Option )
  1107.     @ModeStr =              "SET HRQVESA=117"
  1108. @ElseIf( 508 [= @Option )
  1109.     @ModeStr =              "SET HRQVESA=118"
  1110. @ElseIf( 509 [= @Option )
  1111.     @ModeStr =              "SET HRQVESA=119"
  1112. @ElseIf( 510 [= @Option )
  1113.     @ModeStr =              "SET HRQVESA=11a"
  1114. @ElseIf( 511 [= @Option )
  1115.     @ModeStr =              "SET HRQVESA=11b"
  1116. @Else
  1117.     @ModeStr =              "SET HRQVESA=0"
  1118. @EndIf
  1119.  
  1120.  
  1121. @goto POINTING_DEVICES
  1122.  
  1123.     //
  1124.     // Truevision TV1024-32 graphics adapter installation
  1125.     //
  1126.  
  1127. ADAPT_TV1024:
  1128.  
  1129. @Adapter = "TV1024"
  1130.  
  1131. @FlushOptions()
  1132.  
  1133. @GetOption
  1134.     @LocalWindow(11,40)
  1135.     @Option 610 = " 640 x 480  60Hz  Non-interlaced"
  1136.     @Option 609 = " 800 x 600  60Hz  Non-interlaced"
  1137.     @Option 600 = " 756 x 486  NTSC  Interlaced"
  1138.     @Option 601 = " 720 x 486  NTSC  Interlaced"
  1139.     @Option 602 = " 640 x 480  NTSC  Interlaced"
  1140.     @Option 603 = " 768 x 576  PAL   Interlaced"
  1141.     @Option 604 = " 720 x 576  PAL   Interlaced"
  1142.     @Option 605 = "1024 x 768  60Hz  Non-interlaced"
  1143.     @Option 606 = "1024 x 768  72Hz  Non-interlaced"
  1144.     @Option 607 = "1024 x 768  76Hz  Non-interlaced"
  1145.     @Option 608 = "1024 x 768  87Hz  Interlaced"
  1146.     @Cls
  1147.  
  1148.                  Select The TV1024-32 Mode @Name Will Use
  1149.  
  1150.     @move(18,10)
  1151.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  1152.     highlight bar to the Super VGA mode to use.  Press <Enter> to select
  1153.     that mode.
  1154. @EndOption
  1155.  
  1156. @If( 600 [= @Option )
  1157.     @Adapter =              "@Adapter,0"
  1158. @ElseIf( 601 [= @Option )
  1159.     @Adapter =              "@Adapter,1"
  1160. @ElseIf( 602 [= @Option )
  1161.     @Adapter =              "@Adapter,2"
  1162. @ElseIf( 603 [= @Option )
  1163.     @Adapter =              "@Adapter,3"
  1164. @ElseIf( 604 [= @Option )
  1165.     @Adapter =              "@Adapter,4"
  1166. @ElseIf( 605 [= @Option )
  1167.     @Adapter =              "@Adapter,5"
  1168. @ElseIf( 606 [= @Option )
  1169.     @Adapter =              "@Adapter,6"
  1170. @ElseIf( 607 [= @Option )
  1171.     @Adapter =              "@Adapter,7"
  1172. @ElseIf( 608 [= @Option )
  1173.     @Adapter =              "@Adapter,8"
  1174. @ElseIf( 609 [= @Option )
  1175.     @Adapter =              "@Adapter,9"
  1176. @Else
  1177.     @Adapter =              "@Adapter,10"
  1178. @EndIf
  1179.  
  1180. @ClearOption(1)
  1181. @GetOption
  1182.     @Checkbox
  1183.     @LocalWindow(6,40)
  1184.     @Option 1 = "Dual Monitor Display"
  1185.     @Cls
  1186.             Are you using the TV1024-32 in a 'dual monitor' setup?
  1187.  
  1188.     @move(8,10)
  1189.         In a dual monitor setup, one monitor is used for the TV1024-32
  1190.         and a second is used for the computer (VGA) display.  If you
  1191.         select "Yes", HiRes QFX will preserve the TV1024-32 image on
  1192.         exit or when an external program is run from the User menu.
  1193.         If you are using the TV1024-32 for video applications and have
  1194.         a separate VGA adapter for the computer, select "Yes".
  1195.  
  1196.         If you have only one monitor and are using the TV1024-32
  1197.         internal VGA adapter, select "No".
  1198.  
  1199.     @move(18,10)
  1200.             Press the <Spacebar> key to toggle from "No" to "Yes".
  1201.                    Press <Enter> to confirm your selection.
  1202. @EndOption
  1203.  
  1204. @If (1 [= @Option)
  1205.     @Adapter = "@Adapter,1"
  1206. @EndIf
  1207.  
  1208.  
  1209. @goto POINTING_DEVICES
  1210.  
  1211.     //
  1212.     // Select pointing device (mouse, data tablet)
  1213.     //
  1214.  
  1215. POINTING_DEVICES:
  1216.  
  1217. @FlushOptions()
  1218.  
  1219. @GetOption
  1220.     @LocalWindow(8,40)
  1221.     @Option 2000 = "Microsoft Compatible Mouse"
  1222.     @Option 2001 = "GTCO Bit Pad One Data Tablet"
  1223.     @Option 2002 = "Summagraphics 9 inch Data Tablet"
  1224.     @Option 2003 = "Summagraphics 12 inch Data Tablet"
  1225.     @Option 2004 = "Summagraphics MM1812 Data Tablet"
  1226.     @Option 2005 = "WACOM Tablet in Non-pressure Mode"
  1227.     @Option 2006 = "WACOM Tablet in Pressure Mode"
  1228.     @Cls
  1229.                  Select The Pointing Device @Name Will Use
  1230.  
  1231.     @move(18,10)
  1232.     Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  1233.     highlight bar to the mouse or tablet to use.  Press <Enter> to select
  1234.     that device.
  1235. @EndOption
  1236.  
  1237. @If( 2000 [= @Option )
  1238.     @TabletStr =            "SET QTAB=-1"
  1239. @ElseIf( 2001 [= @Option )
  1240.     @TabletStr =            "SET QTAB=0"
  1241. @ElseIf( 2002 [= @Option )
  1242.     @TabletStr =            "SET QTAB=1"
  1243. @ElseIf( 2003 [= @Option )
  1244.     @TabletStr =            "SET QTAB=2"
  1245. @ElseIf( 2004 [= @Option )
  1246.     @TabletStr =            "SET QTAB=3"
  1247. @ElseIf( 2005 [= @Option )
  1248.     @TabletStr =            "SET QTAB=4"
  1249. @Else
  1250.     @TabletStr =            "SET QTAB=5"
  1251. @EndIf
  1252.  
  1253.     // if more than one serial port, ask which one
  1254.  
  1255. @if( @ComTotal > 1 )
  1256.     @if( "@TabletStr" != "SET QTAB=-1" )
  1257.         @FlushOptions()
  1258.         @GetOption
  1259.             @LocalWindow(8,40)
  1260.             @Option 1 = "Serial Port COM1"
  1261.             @Option 2 = "Serial Port COM2"
  1262.             @Cls
  1263.          Your data tablet is is connected to which serial (COM) port?
  1264.             @move(18,10)
  1265.         Use the <Up Arrow>, <Down Arrow>, <PgUp>, and <PgDn> keys to move the
  1266.         bar to your selection and then press the <Enter> key.
  1267.         @EndOption
  1268.  
  1269.         @If (2 [= @Option)
  1270.             @TabletStr = "@TabletStr;2"
  1271.         @EndIf
  1272.     @endif
  1273. @endif
  1274.  
  1275. MAKE_BATCHFILE:
  1276.  
  1277. @Write( "@OutDrive:@SubDir\\@BatName.bat", "wt", "@@ECHO OFF\n")
  1278. @Write( , , "@TabletStr\n")
  1279. @Write( , , "SET HRQADAPT=@Adapter\n")
  1280. @if( "@ModeStr" != "" )
  1281.     @Write( , , "@ModeStr\n")
  1282. @endif
  1283. @Write( , , "@OutDrive:\n")
  1284. @Write( , , "CD @SubDir\n")
  1285. @if( @VistaGenlock == 1 )
  1286.     @Write( , , "VISTALD GENON.OUT\n")
  1287. @endif
  1288. @Write( , , "@TabletExe\n")
  1289. @Write( , , "@MainExe %1\n")
  1290.  
  1291.  
  1292. INSTALL_DONE:
  1293.  
  1294. @Finish
  1295.     @ChDrive @OutDrive
  1296.     @ChDir "@SubDir"
  1297.  
  1298.     @if( @InstallManualOnly == 1 )
  1299.         @Cls
  1300.         The PostScript(tm) files containing the @Name Reference
  1301.         Manual have been copied to your hard disk.
  1302.  
  1303.         To print the Reference Manual on a PostScript printer:
  1304.         ------------------------------------------------------
  1305.  
  1306.         1.  Switch to the directory where the Reference Manual file is
  1307.             installed.
  1308.                 Example: @OutDrive:
  1309.                          CD @SubDir
  1310.  
  1311.         2.  Copy the files to a PostScript printer.
  1312.                 Example: COPY *.PS LPT1:
  1313.  
  1314.         The file README.DOC contains additional information on printing
  1315.         the manual, including what size paper is required and how many
  1316.         sheets of paper are needed.
  1317.  
  1318.         @pause
  1319.  
  1320.         @goto FINISH_EXIT
  1321.     @endif
  1322.  
  1323.     @if( @DeleteCfg == 1 )
  1324.         @Delete( "HRQ.OLD" )
  1325.         @Rename( "HRQ.CFG", "HRQ.OLD" )
  1326.         @Delete( "HRQ.CFG" )
  1327.     @endif
  1328.  
  1329.     @Cls
  1330.  
  1331.     The installation of @Name is now complete.
  1332.  
  1333.     @if( @exists( "@OutDrive:@SubDir\\README.DOC" ) &&
  1334.                                             @ChangeAdapterOnly == 0 &&
  1335.                                                     @InstallFontsOnly == 0 )
  1336.         When you are ready to read the README file,
  1337.         @Pause
  1338.         @Spawn( "VIEW README.DOC" )
  1339.         @Cls
  1340.     @endif
  1341.  
  1342.     Type '@BatName' and press <Enter> to Run @Name.
  1343.  
  1344.     @Pause
  1345.  
  1346. FINISH_EXIT:
  1347.  
  1348. @EndFinish
  1349.  
  1350.  
  1351.